﻿using System;
using Gtk;

namespace ClassLibrary1
{
    class WindowTester
    {
        static void Main()
        {
            Application.Init();
            Window myWindow = new Window("普京致电特朗普，感谢挫败恐袭");
            myWindow.DeleteEvent += OnDelete;
            myWindow.SetDefaultSize(200, 200);

            //Put a button in the Window
            Button button = new Button("Click");
            button.Clicked += (s, e) => Console.WriteLine("普京致电特朗普，感谢挫败恐袭"); 
            myWindow.Add(button);
            myWindow.ShowAll();
            Application.Run();
        }

        static void OnDelete(object o, DeleteEventArgs e)
        {
            Application.Quit();
        }
    }
}